package com.ucpaas.sms.dto;

import com.jsmsframework.channel.entity.JsmsWhiteKeywordChannel;
import org.apache.commons.lang3.time.DateFormatUtils;

/**
 * Created by Don on 2017/12/21.
 */
public class WhiteKeywordChannelDTO extends JsmsWhiteKeywordChannel {
    private  String updateTimeStr;

    public String getUpdateTimeStr() {
        if(getUpdateTime()!=null){
            updateTimeStr= DateFormatUtils.format(getUpdateTime(), "yyyy-MM-dd HH:mm:ss");
        }else {
            updateTimeStr="-";
        }
        return updateTimeStr;
    }

    public void setUpdateTimeStr(String updateTimeStr) {
        this.updateTimeStr = updateTimeStr;
    }
}
